package com.ruoyi.SuveryInterface.Imp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.SuveryInterface.Imp.domain.SysIdentityXgbzxr;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-11
 */
public interface SysIdentityXgbzxrMapper extends BaseMapper<SysIdentityXgbzxr> {

    void insertBatch(@Param("identityXgbzxr") List<SysIdentityXgbzxr> identityXgbzxr);

    @Select("select * from sys_identity_xgbzxr where identity_id = #{identityId}")
    List<SysIdentityXgbzxr> selectByIdentityId(Long identityId);

    @Select("select id,identity_id as identityId,data_id as dataId,qyfr,qymc,zxfy,larq,ah,fbrq from sys_identity_xgbzxr where identity_id = #{identityId}")
    List<SysIdentityXgbzxr> selectSysIdentityXgbzxrByIdentityId(Long identityId);
}
